#ifndef __GAME_CLIENT__
#define __GAME_CLIENT__

#include "utility.h"
#include "opcode.h"
#include <d3d9.h>
#include <d3dx9core.h>

#pragma comment(lib, "d3d9.lib")
#pragma comment(lib, "d3dx9.lib")

#define COM_METHOD(TYPE, METHOD) TYPE STDMETHODCALLTYPE METHOD

extern LPDIRECT3D9 g_d3d;
//extern LPDIRECT3DDEVICE9 g_device;
extern LPDIRECT3DTEXTURE9 tex;
extern LPDIRECT3DVERTEXDECLARATION9 _decl;

extern HashSet device_list;

extern HWND hWnd;
extern CommandClient cc;
extern int obj_id;
extern int use_cache;

#define WINDOW_CLASS "MYWINDOWCLASS"
#define WINDOW_NAME "Game Client"

HRESULT server_init();
bool init_window(int width,int height);

extern UnstructuredNet dic;

#endif
